package com.whq.thrift.api.web.base.serviceconf.service;

import java.util.List;

import com.whq.thrift.api.web.base.serviceconf.db.UrlMappingInfo;


public abstract class UrlMappingInfoService {

	protected boolean isGray = false;

	public abstract void addUrlMappingInfo(UrlMappingInfo urlMappingInfo);

	public abstract void updateUrlMappingInfo(UrlMappingInfo record);

	public abstract void deleteUrlMappingInfo(String url);

	public abstract List<UrlMappingInfo> findUrlMappingInfoByMap(String url, int beginIndex, int maxCount);

	public abstract int findUrlMappingInfoCount(String url);

	public abstract UrlMappingInfo findUrlMappingInfo(String url);
	
	public abstract List<UrlMappingInfo> findAllUrlMappingInfo();

	public void setGray(boolean gray) {
		isGray = gray;
	}
}
